package com.getan.boot.module.system.domain.bo;

import com.getan.boot.common.domain.GenericBO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;

/**
 * 登录对象
 *
 * @author Bruce.Gong
 * @since 1.0.0-SNAPSHOT
 */
public interface LoginBO {

    @EqualsAndHashCode(callSuper = true)
    @Data
    public static class UsernamePasswordBO extends GenericBO {

        @NotEmpty(message = "用户名不能为空")
        private String username;
        @NotEmpty(message = "密码不能为空")
        private String password;

    }

}
